//
// Created by harrybao on 2019/4/4.
//

#ifndef CMAKE_SINGLY_LIST_H
#define CMAKE_SINGLY_LIST_H

#include "list_node.h"

class SinglyList
{
public:
    static void Push(ListNode* node, ListNode* &head)
    {
        node->next = head;
        head = node;
    }
    static void Pop(ListNode* &head)
    {
        head = head->next;
    }
    static ListNode* Front(ListNode* head)
    {
        return head;
    }
    static bool Empty(ListNode* &head)
    {
        return head == nullptr;
    }
};

#endif //CMAKE_SINGLY_LIST_H
